package io.github.talelin.latticy.model;

import io.github.talelin.latticy.model.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @author generator@wulongbo
 * @since 2022-08-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("rules")
@AllArgsConstructor
@NoArgsConstructor
public class RulesDO extends BaseModel {

    private String rule;

    /**
     * 规则名称
     */
    private String name;

    private BigDecimal baseCost;

    public RulesDO(Integer id, String name) {
        this.setId(id);
        this.name = name;
    }

    public RulesDO(Integer id, BigDecimal baseCost) {
        this.setId(id);
        this.baseCost = baseCost;
    }
}
